from todo_api_protect.base.mybase import Tools

class search_model(Tools):
    path = '/task/info'

    def search_action(self, status, hd):
        mydata = {
            status: 0
        }
        res = self.meeting.get(url=self.hosturl+self.path, params=mydata, headers=hd)
        return res.json()

# from todo_api_protect.api.login_api import login_model
# import requests
# s = requests.session()
# login = login_model(meeting=s)
# msg = login.login_action(usr='admin10023', pwd='admin123', check='1234')
# print(msg)
# getuserId = msg['userId']
# getuserToken = msg['userToken']
# hd = {"userId": getuserId, "userToken": getuserToken}
#
# search = search_model(meeting=s)
# msg = search.search_action(status=0, hd=hd)
# print(msg)
